import java.util.ArrayList;


public class MacDo {

	public static void main(String[] args) {
		
		Rayon rayonH1 = new Rayon(3,10,"BigMac 1");
		//Rayon rayonH2 = new Rayon(3,8,"BigMac 2");
		Rayon rayonFrite1 = new Rayon(5,2,"Frites 1");
		Rayon rayonFrite2 = new Rayon(5,2,"Frites 2");
		
		Rayon rayonDeluxes = new Rayon(10,1,"Deluxes");
		
		Preparateur p1H = new Preparateur(rayonH1,1);
		//Preparateur p2H = new Preparateur(rayonH2,2);
		Preparateur p3F = new Preparateur(rayonFrite1,3);
		Preparateur p4F = new Preparateur(rayonFrite2,4);
		Preparateur p4D = new Preparateur(rayonDeluxes,5);
		
		ArrayList<Rayon> lesRayons = new ArrayList<Rayon>();
		lesRayons.add(rayonH1);
		//lesRayons.add(rayonH2);
		lesRayons.add(rayonFrite1);
		lesRayons.add(rayonFrite2);
		//lesRayons.add(rayonDeluxes);
		
		PreparateurVolant pv1 = new PreparateurVolant(lesRayons,1);
				
		Caisse ca1 = new Caisse(1);
		Caisse ca2 = new Caisse(2);
		Caisse ca3 = new Caisse(3);
		
		Caissier c1 = new Caissier(1,ca1,rayonH1,rayonFrite1,rayonDeluxes);
		Caissier c2 = new Caissier(2,ca2,rayonH1,rayonFrite2,rayonDeluxes);
		Caissier c3 = new Caissier(3,ca3,rayonH1,rayonFrite1,rayonDeluxes);
		
		Client cl1 = new Client(1, ca1);
		Client cl2 = new Client(2, ca2);
		Client cl3 = new Client(3, ca3);
		
		p1H.start();
		//p2H.start();
		p3F.start();
		p4F.start();
		p4D.start();
		pv1.start();
		
		c1.start();
		c2.start();
		c3.start();
		
		cl1.start();
		cl2.start();
		cl3.start();
	}

}
